{include file="public/headerbase" /}
{include file="public/left" /}
<div class="right-content">
	<ol class="breadcrumb we7-breadcrumb">
	<i class="wi wi-back-circle"></i>
	<li>
		商品规格
	</li>
	<li>
		添加规格
	</li>
</ol>
<div class="clearfix">
	<form action="" method="post" class="we7-form" role="form">
		<div id="tpl">
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 control-label">商品规格</label>
				<div class="col-sm-8">
					<input type="text" class="form-control" name="title[]" vlaue="" placeholder="商品规格"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 control-label">单规格数量</label>
				<div class="col-sm-8">
					<input type="text" class="form-control" name="title[]" vlaue="" placeholder="单规格数量"/>
				</div>
			</div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 control-label">价格</label>
				<div class="col-sm-8">
					<input type="text" class="form-control" name="title[]" vlaue="" placeholder="价格"/>
				</div>
			</div>
			<hr/>
		</div>
		<div id="container"></div>
		<div class="form-group">
			<label class="col-sm-2 control-label"></label>
			<div class="col-sm-8">
				<a href="javascript:;" id="category-add"><i class="fa fa-plus-circle"></i> 继续添加分类</a>
			</div>
		</div>
		<div class="form-group">
			<div class="">
				<input type="submit" class="btn btn-primary" name="submit" value="提交" />
				<a href="{:url('Goods/addlist')}"><button type="button" class="btn btn-success">取消</button>
				<input type="hidden" name="token" value="ff78552c" />
			</div>
		</div>
	</form>
</div>
<script>
	$(function(){
		$('#category-add').click(function(){
			var html = $('#tpl').html();
			$('#container').append(html);
			return false;
		});
	});
</script>
</div>
{include file="public/footer" /}